﻿using Entity.BaseEntitys;
using Entity.BaseSplit;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity.Permissionss
{
    [Index(nameof(PermissionsCode),nameof(PermissionsName),nameof(Description))]
    public class Permissions:CreateEntity<Guid>
    {
 
        public string PermissionsCode { get; set; } = "";


        public string PermissionsName { get; set; } = "";

        public string Icon { get; set; } = "";

        public bool AlwaysShow { get; set; } = true;

        public string Component { get; set; } = "";

        public string Description { get; set; } = "";

        public Guid? ParentId { get; set; }
      
        public int Sort { get; set; }


    }


    public class PermissionsSplitDataSourceRoute : BaseSplitDataSourceRoute<Permissions, Guid>
    {

    }
}
